﻿using System.Web;
using System.Web.Optimization;

namespace source
{
    public class BundleConfig
    {
        // 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle(BundleConst.jquery).Include(
                        "~/Content/js/jquery-{version}.js"));

            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            bundles.Add(new ScriptBundle(BundleConst.Modernizr).Include(
                        "~/Content/js/modernizr-*"));

            bundles.Add(new ScriptBundle(BundleConst.BootStarp_JS).Include(
                      "~/Content/bootstrap-3.3.7/js/bootstrap.js",
                      "~/Content/js/jquery-{version}.js",
                      "~/Content/js/respond.js"
                      ));

            bundles.Add(new StyleBundle(BundleConst.BootStrap_Css).Include(
                      "~/Content/bootstrap-3.3.7/css/bootstrap.min.css",
                      "~/Content/bootstrap-3.3.7/css/bootstrap-theme.css"
                      ));
        }
    }

    public class BundleConst
    {
        public const string Modernizr = "~/bundles/modernizr";
        public const string BootStarp_JS = "~/bundles/js/bootstrap";
        public const string BootStrap_Css = "~/bundles/css/bootstrap";
        public const string jquery = "~/bundles/jquery";

        public const string Index = "~/bundles/index";
    }
}
